/* abc - The AspectBench Compiler
 * Copyright (C) 2004 Oege de Moor
 *
 * This compiler is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This compiler is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this compiler, in the file LESSER-GPL;
 * if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

package abc.aspectj.ast;

import java.util.Set;
import java.util.HashSet;

import polyglot.util.Position;
import polyglot.util.CodeWriter;
import polyglot.ast.Precedence;
import polyglot.visit.PrettyPrinter;
import abc.weaving.aspectinfo.EmptyPointcut;

/**
 * 
 * @author Oege de Moor
 *
 */
public class PCEmpty_c extends Pointcut_c implements PCEmpty {

	public PCEmpty_c(Position pos) {
		super(pos);
	}
	
	public Set pcRefs() {
		return new HashSet();
	}
	
	public boolean isDynamic() {
		return false;
	}

	public abc.weaving.aspectinfo.Pointcut makeAIPointcut() {
	  return new EmptyPointcut(position);
	 }
	 
	public Precedence precedence() {
		  return Precedence.LITERAL;
	  }

	public void prettyPrint(CodeWriter w, PrettyPrinter tr) {
		  w.write("/* empty pointcut */");
	  }
    
}
